var node = Coralian.client.Menu().create([
	{
		name: 'font',
		title: '字体',
		list: [
			{
				name: 'simhei',
				title: '黑体'
			},
			{
				name: 'arial',
				title: 'Arial'
			}
		]
	},
	{
		name: 'image',
		title: '图片'
	},
	{
		name: 'align',
		title: '对齐方式',
		list: [
			{
				name: "alignleft",
				title: '左对齐'
			},
			{
				name: "aligncenter",
				title: '居中对齐'
			},
			{
				name: "alignright",
				title: '右对齐'
			}
		]
	},
	{
		name: 'first',
		title: '一级菜单',
		list: [
			{
				name: "second1",
				title: '二级菜单1',
				list: [
					{
						name: "third11",
						title: '三级菜单11'
					},
				]
			},
			{
				name: "second2",
				title: '二级菜单2',
				list: [
					{
						name: "third21",
						title: '三级菜单21',
						list: [
							{
								name: "forth11",
								title: '四级菜单11'
							},
							{
								name: "forth12",
								title: '四级菜单12'
							}
						]
					},
					{
						name: "third22",
						title: '三级菜单22',
						list: [
							{
								name: "forth21",
								title: '四级菜单21'
							},
							{
								name: "forth22",
								title: '四级菜单22'
							}
						]
					}
				]
			},
			{
				name: "second3",
				title: '二级菜单3'
			}
		]
	}
], {
	simhei: function () {
		append("simhei");
	},
	arial: function () {
		append("arial");
	},
	image: function () {
		append("image");
	},
	alignleft: function () {
		append("alignleft");
	},
	aligncenter: function () {
		append("aligncenter");
	},
	alignright: function () {
		append("alignright");
	},
	third11: function () {
		append("third11");
	},
	forth11: function () {
		append("forth11");
	},
	forth12: function () {
		append("forth12");
	},
	forth21: function () {
		append("forth21");
	},
	forth22: function () {
		append("forth22");
	},
	second3: function () {
		append("second3");
	}
});

function append(str) {
	$("body").append(`<p>${str}</p>`);
}

$("body").append(node);